package gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JComboBox;

public class MyActionListener implements ActionListener {
	
	private JComboBox comboBox;

	public MyActionListener(JComboBox comboBox) {
		super();
		this.comboBox = comboBox;
	}

	public void actionPerformed(ActionEvent arg0) {
		System.out.println(comboBox.getSelectedIndex());
	}


}
